package com.ruoyi.prize.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抽奖管理对象 prize
 * 
 * @author ximu
 * @date 2023-03-17
 */
public class Prize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖品id */
    private Long prizeId;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    private String prizeName;

    /** 奖品说明 */
    @Excel(name = "奖品说明")
    private String prizeInfo;

    /** 是否归属 */
    @Excel(name = "是否归属")
    private Integer isBelong;

    /** 归属用户 */
    @Excel(name = "归属用户")
    private Long userId;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date failureTime;

    public void setPrizeId(Long prizeId) 
    {
        this.prizeId = prizeId;
    }

    public Long getPrizeId() 
    {
        return prizeId;
    }
    public void setPrizeName(String prizeName) 
    {
        this.prizeName = prizeName;
    }

    public String getPrizeName() 
    {
        return prizeName;
    }
    public void setPrizeInfo(String prizeInfo) 
    {
        this.prizeInfo = prizeInfo;
    }

    public String getPrizeInfo() 
    {
        return prizeInfo;
    }
    public void setIsBelong(Integer isBelong) 
    {
        this.isBelong = isBelong;
    }

    public Integer getIsBelong() 
    {
        return isBelong;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFailureTime(Date failureTime) 
    {
        this.failureTime = failureTime;
    }

    public Date getFailureTime() 
    {
        return failureTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prizeId", getPrizeId())
            .append("prizeName", getPrizeName())
            .append("prizeInfo", getPrizeInfo())
            .append("isBelong", getIsBelong())
            .append("userId", getUserId())
            .append("failureTime", getFailureTime())
            .toString();
    }
}
